package BulkCmIRPConstDefs;
/**
 * Generated from IDL enum "SubPhase".
 *
 * @author JacORB IDL compiler V 2.3.0, 17-Feb-2007
 * @version generated at 2013-5-20 22:07:19
 */

public final class SubPhase
	implements org.omg.CORBA.portable.IDLEntity
{
	private int value = -1;
	public static final int _IDLE_PHASE = 0;
	public static final SubPhase IDLE_PHASE = new SubPhase(_IDLE_PHASE);
	public static final int _DOWNLOAD_PHASE = 1;
	public static final SubPhase DOWNLOAD_PHASE = new SubPhase(_DOWNLOAD_PHASE);
	public static final int _UPLOAD_PHASE = 2;
	public static final SubPhase UPLOAD_PHASE = new SubPhase(_UPLOAD_PHASE);
	public static final int _ACTIVATION_PHASE = 3;
	public static final SubPhase ACTIVATION_PHASE = new SubPhase(_ACTIVATION_PHASE);
	public static final int _FALLBACK_PHASE = 4;
	public static final SubPhase FALLBACK_PHASE = new SubPhase(_FALLBACK_PHASE);
	public static final int _PREACTIVATION_PHASE = 5;
	public static final SubPhase PREACTIVATION_PHASE = new SubPhase(_PREACTIVATION_PHASE);
	public static final int _VALIDATION_PHASE = 6;
	public static final SubPhase VALIDATION_PHASE = new SubPhase(_VALIDATION_PHASE);
	public int value()
	{
		return value;
	}
	public static SubPhase from_int(int value)
	{
		switch (value) {
			case _IDLE_PHASE: return IDLE_PHASE;
			case _DOWNLOAD_PHASE: return DOWNLOAD_PHASE;
			case _UPLOAD_PHASE: return UPLOAD_PHASE;
			case _ACTIVATION_PHASE: return ACTIVATION_PHASE;
			case _FALLBACK_PHASE: return FALLBACK_PHASE;
			case _PREACTIVATION_PHASE: return PREACTIVATION_PHASE;
			case _VALIDATION_PHASE: return VALIDATION_PHASE;
			default: throw new org.omg.CORBA.BAD_PARAM();
		}
	}
	public String toString()
	{
		switch (value) {
			case _IDLE_PHASE: return "IDLE_PHASE";
			case _DOWNLOAD_PHASE: return "DOWNLOAD_PHASE";
			case _UPLOAD_PHASE: return "UPLOAD_PHASE";
			case _ACTIVATION_PHASE: return "ACTIVATION_PHASE";
			case _FALLBACK_PHASE: return "FALLBACK_PHASE";
			case _PREACTIVATION_PHASE: return "PREACTIVATION_PHASE";
			case _VALIDATION_PHASE: return "VALIDATION_PHASE";
			default: throw new org.omg.CORBA.BAD_PARAM();
		}
	}
	protected SubPhase(int i)
	{
		value = i;
	}
	java.lang.Object readResolve()
	throws java.io.ObjectStreamException
	{
		return from_int(value());
	}
}
